home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ RIVA TNT 3.xpl < prev    next >
Text File  |  1999-10-13  |  2KB  |  82 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="3"
  4. "UIPATH"="Hardware\Video Cards\Riva TNT"
  5. "NAME"="OpenGL Settings"
  6. "VERSION"="1.10"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Enable Buffer Flipping"
  9. "TEXT 2"="Enable Vsync Blank waitstate"
  10. "TEXT 3"="Force Multi Texture"
  11. "DESCRIPTION 1"="Some options for your Riva TNT and Riva TNT 2 3D card." 
  12. "DESCRIPTION 2"="NOTE: This plug-in is only for use on Windows 95/98."
  13. "AUTHOR"="Xteq Systems"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  16. "COMMENT 2"="Thanks to CptSiskoX!"
  17.  
  18.  
  19. sPC="HKLM\SOFTWARE\NVIDIA Corporation\Riva TNT\"
  20. sV1="HKLM\Software\NVIDIA Corporation\Riva TNT\OpenGL\EnableBufferFlipping" 'DW
  21. sV2="HKLM\Software\NVIDIA Corporation\RIVA TNT\OpenGL\EnableVBlankWait" 'DW
  22. sV3="HKLM\Software\NVIDIA Corporation\RIVA TNT\OpenGL\ForceMultiTexture" 'DW
  23. Sub Plugin_Initialize 
  24. If (GetWinVer=1 or GetWinVer=3) and RegPathExists(sPC) then
  25.  
  26.    i=RegReadValue(sV1)
  27.    if i=1 then SetUiElement 1,true
  28.  
  29.    i=RegReadValue(sV2)
  30.    if i=1 then SetUiElement 2,true
  31.  
  32.    i=RegReadValue(sV3)
  33.    if i=1 then SetUiElement 3,true
  34.  
  35. else
  36.    Call Disable()
  37. end if 
  38. End Sub
  39.  
  40.  
  41. Sub Plugin_CheckData(ElementIndex)
  42. End Sub
  43.  
  44.  
  45.  
  46. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  47.  b=GetUIElement(1)
  48.  if b=true then
  49.     i=1
  50.  else
  51.     i=0
  52.  end if
  53.  Call RegWriteValue(sV1,i,2)
  54.  
  55.  b=GetUIElement(2)
  56.  if b=true then
  57.     i=1
  58.  else
  59.     i=0
  60.  end if
  61.  Call RegWriteValue(sV2,i,2)
  62.  
  63.  b=GetUIElement(3)
  64.  if b=true then
  65.     i=1
  66.  else
  67.     i=0
  68.  end if
  69.  Call RegWriteValue(sV3,i,2)
  70.  
  71.  
  72.  
  73.  Call Restart()
  74. End Sub
  75.  
  76.  
  77. Sub Plugin_Terminate 
  78. End Sub
  79.  
  80.  
  81.  
  82.